]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ViewSelector: remove unnecessary StBoxLayout
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 13 Dec 2012 22:21:53 +0000 (23:21 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 15 Dec 2012 14:23:21 +0000 (15:23 +0100)
It was a remnant from the tabbed interface.

https://bugzilla.gnome.org/show_bug.cgi?id=690171

js/ui/viewSelector.js

index 868fab78c170235a5cb3952470c8ebefee9bb5b0..ba09ae261b5441879f3844f8a1e2bbe4afc61b17 100644 (file)
@@ -39,17 +39,11 @@ const ViewSelector = new Lang.Class({
     Name: 'ViewSelector',
 
     _init : function(searchEntry, showAppsButton) {
-        this.actor = new St.BoxLayout({ name: 'viewSelector',
-                                        vertical: true });
+        this.actor = new Shell.Stack({ name: 'viewSelector' });
 
         this._showAppsButton = showAppsButton;
         this._showAppsButton.connect('notify::checked', Lang.bind(this, this._onShowAppsButtonToggled));
 
-        this._pageArea = new Shell.Stack();
-        this.actor.add(this._pageArea, { x_fill: true,
-                                         y_fill: true,
-                                         expand: true });
-
         this._activePage = null;
 
         this.active = false;
@@ -191,7 +185,7 @@ const ViewSelector = new Lang.Class({
                                                       this._a11yFocusPage(page);
                                                   })
                                             });;
-        this._pageArea.add_actor(page);
+        this.actor.add_actor(page);
         return page;
     },